# coding:utf-8


def test(n):
    haha = '\t'.join(['{}*{}={}'.format(n, a, n*a) for a in range(1, n+1)])
    print(haha)
    return haha

res = list(map(test, [i for i in range(1, 10)]))

with open('99.txt', 'w') as w:
    for i in res:
        w.write(i+'\n')
